<template>
    <div class="early">
        <div class="content_pop">
            <h1>实时预警记录</h1>
            <div class="early_header">
                <div class="early_tab" @click="tab_stu=true">
                    <div class="img" >
                        <img v-if="tab_stu" src="../../assets/images/scan.png" alt="">
                    </div>
                    <div class="tab_name">站内</div>
                </div>
                <div class="early_tab" @click="tab_stu=false">
                     <div class="img">
                        <img v-if="!tab_stu" src="../../assets/images/scan.png" alt="">
                    </div>
                    <div class="tab_name">站外</div>
                </div>
                 <img class="img1" src="../../assets/images/question.png" alt="">
                <div class="tab_active" :style="tab_stu?'left:0':'left:76px'"></div>
            </div>
            <div class="screen">
                <Select v-model="model1" class="selet1" placeholder="全部预警结果">
                    <Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
                </Select>
                  <Select v-model="model1" class="selet1" placeholder="全部点位">
                    <Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
                </Select>
            </div>
        </div>
    </div>
</template>
<script>
export default {
  data () {
    return {
      tab_stu: true
    }
  }
}
</script>
<style lang="less" scoped>
.early{
    width: 100%;
    height: 100%;
    position: fixed;
    top:0;
    left: 0;
    background:rgba(0,0,0,0);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    .content_pop{
        width: 77vw;
        height: 53.3vw;
        background: rgba(0, 0, 0, 0.44999998807907104);
        border-radius: 6px 6px 6px 6px;
        padding: 0 9.83vw;
        h1{
            font-size: 32px;
            color: #fff;
            margin-top: 35px;
            text-align: center;
        }
        .screen{
            display: flex;
            margin-top: 1vw;
            /deep/.selet1{
                width: 9.78vw;
                margin-right: .5vw;
            }
        }
        .early_header{
            height: 44px;
            background: rgba(255, 255, 255, 0.3);
            margin-top: 2vw;
            display: flex;
            border-bottom: 1px solid rgba(255, 255, 255, 0.5);
            padding-left: 7px;
            position: relative;
            align-items: center;
            .early_tab{
                display: flex;
                align-items: center;
                margin-right: 12px;
                cursor: pointer;
                .img{
                    width: 20px;
                    height: 20px;
                    img{
                        width: 100%;
                        height: 100%;
                    }
                }
                .tab_name{
                    font-size: 16px;
                    color: #fff;
                    padding-left: 12px;
                }

            }
            .img1{
                width: 16px;
                height: 16px;
                cursor: pointer;
            }
            .tab_active{
                width: 34px;
                height: 1px;
                background: #fff;
                position: absolute;
                left: 0;
                bottom: 0;
                transition: left .3s;
            }
        }
    }

}
</style>
